const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  //vue开发中如何解决跨域，通过代理服务器
  devServer: {
    proxy: {
      "/api": {
        //真实服务器地址
        target: "http://xue.cnkdl.cn:8809",
        // target: process.env.VUE_APP_BASE_URL,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
});
